#include <func.h>

int main(int argc,char *argv[])
{
    int shmid=shmget(0x1234,4096,IPC_CREAT|0600);
    ERROR_CHECK(shmid,-1,"shmget");
    char* p=(char*)shmat(shmid,NULL,0);
    strcpy(p,"1234567");
    shmdt(p);
    return 0;
}

